#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>

using namespace std; 

template<class T>
void Swap(T& x, T& y)
{
	T tmp = x;
	x = y;
	y = tmp;
}


int main()
{
	int x1 = 1, y1 = 2;
	double x2 = 1.1, y2 = 2.2;
	Swap(x1, y1);
	Swap(x2, y2);
	Swap<int>(x1, y1);



	return 0;
}